package com.blb.aop.dao.impl;

import com.blb.aop.dao.StudentDao;
import com.blb.aop.entity.Student;
import org.springframework.stereotype.Repository;

@Repository
public class StudentDaoImpl implements StudentDao {
    @Override
    public void insert(Student student) {
        System.out.println("插入学生"+student);
    }

    @Override
    public void update(Student student) {
        System.out.println("更新学生"+student);
    }

    @Override
    public void delete(Long id) {
        System.out.println("删除学生"+id);
    }

    @Override
    public Student selectById(Long id) {
        System.out.println("查询学生"+id);
        Student student = new Student(id, "张三", 16, "男");
        return student;
    }
}
